package com.xq.exception;

/**
 * @title: BusinessException
 * @Author Tan
 * @Date: 2020/7/21 9:29
 * @Version 1.0
 */

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 自定义业务异常
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BusinessException extends RuntimeException{
    @ApiModelProperty(value = "返回的状态码")
    private Integer code;
    @ApiModelProperty(value = "返回消息")
    private String msg;


}